package Com.amit.corejava;

public class Lab5 {

	int id;
	String name;
	
	void insertRecord(int i,String r)
	{
		id=i;
		name=r;
	}
	
	void display()
	{
		System.out.println(id+" "+name);
	}
	public static void main(String[] args) {
		
		Lab5 l1=new Lab5();
		
		Lab5 l2=new Lab5();
		
		l1.insertRecord(10, "amit");
		l2.insertRecord(20, "anil");
		
		l1.display();
		l2.display();
		
		

	}

}
